package com.koron.order.repair.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderDispatch;
import com.koron.order.repair.bean.dto.RepairDetailDto;
import com.koron.order.repair.bean.entity.RepairPo;
import com.koron.order.repair.bean.query.RepairQuery;
import com.koron.order.repair.bean.vo.RepairDetailVo;
import org.koron.ebs.mybatis.SessionFactory;

/**
 * (Repair)表服务接口
 *
 * @author zhouj
 * @since 2021-09-13 17:42:14
 */
public interface RepairService extends CommonService {

    String insertOrUpdate(SessionFactory factory, RepairDetailDto dto);

    int insert(SessionFactory factory, RepairPo repair);

    int update(SessionFactory factory, RepairPo repair);

    boolean updateStatus(SessionFactory factory, String id, String status);

    int deleteById(SessionFactory factory, String id);

    RepairDetailVo queryById(SessionFactory factory, String id);

    RepairPo queryRepairBeanById(SessionFactory factory, String id);

    PageInfo queryList(SessionFactory factory, RepairQuery query, PageQuery pageQuery);

    int submitRepair(SessionFactory factory, String repairId, String status, OrderDispatch orderDispatch);

}
